
<!DOCTYPE html>
<html>
<head>
<title>IT工程师后台管理</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport' />
<link href='css/core/bootstrap.css' media='all' rel='stylesheet' type='text/css' />
<link href='css/core/light-theme.css' id='color-settings-body-color' media='all' rel='stylesheet' type='text/css' />
<link href='css/uploadify.css' type='text/css' rel="stylesheet"/>
<link href='css/base.css' media='all' rel='stylesheet' type='text/css' />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body class=''>
<header id="header">

</header>

<div id='wrapper'>
    <div id='main-nav-bg'></div>
    <nav class='' id='main-nav'>
        <div id="guide" class='navigation'>
            
        </div>
    </nav>
    <section id='content'>
        <div class='container-fluid'>
            <div class='row-fluid' id='content-wrapper'>
                <div class='span12'>
                    <div class='page-header'>
                        <h1 class='pull-left'>
                            <i class='icon-dashboard'></i>
                            <span>博创华宇教育管理</span>
                        </h1>
                    </div>
                    <div class='row-fluid'>
                        <div class='span12 box'>
                            <div class='box-header'>
                                <div class='title'>
                                    生成项目
                                </div>
                            </div>
                            <div class='box-content'>
                                <div class='form' style='margin-bottom: 0;'>
                                    <fieldset>
                                       <div class='span4'>
                                            <div class='lead'>
                                                <div id='photoBtn'></div>
                                                  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;上传图片比例：16:9</p>
                                            </div>
                                            <small id='photoList' class='muted'></small>
                                        </div>
                                        <div class='span7 offset1'>
                                            <div class='control-group'>
                                                <label class='control-label'>项目名称</label>
                                                <div class='controls'>
                                                    <input class='span12' id='name' placeholder='' type='text' />
                                                    <!-- <small class='muted'>项目的初始名称</small> -->
                                                </div>
                                            </div>    
                                            <div class='control-group'>
                                                <label class='control-label'>供应商*</label>
                                                <select id="owner" class='select2 input-block-level'>
                                                </select>
                                            </div>                        
                                            <div class='control-group' style="margin-bottom:5%;">
                                                <label class='control-label'>学员级别</label>
                                                <select id='level' class='input-block-level' id='select2-icon'>
                                                    <option value='1'>门外汉</option>
                                                    <option value='2'>实习生</option>
                                                    <option value='3'>工程师</option>
                                                    <option value='4'>项目经理</option>
                                                </select>
                                                <small class='muted'>学生完成项目后将分配对应的等级</small>
                                            </div>
                                            <div class='control-group'>
                                                <div class='controls' >
                                                    <input id='homeworkBtn' type='file' name='file' style='width:20%;'>
                                                    <div id='homeworkList'></div>
                                                    <!-- <small class='muted'>上传作业附件</small> -->
                                                </div>
                                            </div>
                                             <div class='control-group'>
                                                <label class='control-label'>关联课程</label>
                                                <div class='controls' >
                                                    <button class="btn btn-primary btn-block btn-large disabled aboutCourse" name="button"><div style=" margin-top: 10px;">选择关联的课程<p style="font-size: 50px;float: right; margin-right: 20px;">+</p></div></button>
                                                    <div >
                                                        <table style="width:100%" class="table table-bordered courses"><thead><tr>
                                                                <th>名称</th>  
                                                                <th>描述</th>
                                                                <th>操作</th>
                                                            </tr></thead>
                                                            <tbody id='aboutCourseList'>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                    <!-- <small class='muted'>上传作业附件</small> -->
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                    <hr class='hr-normal' />
                                    <div class='form-actions' style='margin-bottom: 0;'>
                                        <div class='text-center'>
                                            <div id="jumpKity" class='btn btn-primary btn-large span3' style=" margin-left: 70px;">
                                                保存项目
                                            </div>
                                            <div id="jumpKityTree" class='btn btn-success btn-large span3' style=" float: right;margin-right: 70px;">
                                                查看项目树
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>    
                        </div>
                    </div>
                </div>
            </div>   
        </div>            
    </section>
</div>
<script src='js/core/jquery.min.js' type='text/javascript'></script>
<script src='js/core/bootstrap-treeview.min.js' type='text/javascript'></script>
<script src='js/core/uploadify.js' type='text/javascript'></script>
<script src='js/core.js' type='text/javascript'></script>
<script src='js/res.js' type='text/javascript'></script>
<script src='js/init.js' type='text/javascript'></script>
<script src='js/project.js' type='text/javascript'></script>
</body>
<script type="text/javascript">
    Project.editInit();
    $("#homeworkBtn").uploadify({
        'swf'        : 'js/core/uploadify.swf',
        'uploader'   :  Core.API_VER+"/upload",
        'buttonText' : '上传作业',
        'method':"post",
        'fileTypeDesc': '请选择附件格式', 
        'fileSizeLimit'   : '3072',
        'onUploadSuccess' : function(file, res) {
            res = eval('(' + res + ')');
            if (res.code) {
                $alert(res.codemsg);
                return;
            }                    
            var url = res.result.url;   
            $("#homeworkList").html("作业附件:<p id='homework'>" + url + "</p>");                    
        },
        'onUploadStart' : function(file) {
                             
        } 
    });
</script>
<script type="text/javascript">
    $("#photoBtn").uploadify({
        'swf'        : 'js/core/uploadify.swf',
        'uploader'   :  Core.API_VER+"/upload?compress=1",
        'buttonText' : '上传图片',
        'method':"post",
        'fileTypeDesc': '请选择图片格式', 
        'fileTypeExts': '*.jpg;*.jpeg;*.png;*.gif;*.swf',
        'fileSizeLimit'   : '3072',
        'onUploadSuccess' : function(file, res) {
            res = eval('(' + res + ')');
            if (res.code) {
                $alert(res.codemsg);
                return;
            }                    
            var url = res.result.url;   
            $("#photoList").html('<img src="' + Core.IMG_VER + url + '" style="width:100%;"><input id="photo" type="hidden" value="' + url + '">');                    
        },
        'onUploadStart' : function(file) {
                             
        } 
    });
    </script>
</html>